Optimal. Leaf size=50 \[ \frac {\tan ^{-1}\left (\sqrt {\frac {1}{2} \left (5+\sqrt {21}\right )} x\right )}{\sqrt {3}}-\frac {\tan ^{-1}\left (\sqrt {\frac {2}{5+\sqrt {21}}} x\right )}{\sqrt {3}} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {1163, 203} \begin {gather*} \frac {\tan ^{-1}\left (\sqrt {\frac {1}{2} \left (5+\sqrt {21}\right )} x\right )}{\sqrt {3}}-\frac {\tan ^{-1}\left (\sqrt {\frac {2}{5+\sqrt {21}}} x\right )}{\sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 1163
Rubi steps
\begin {align*} \int \frac {1-x^2}{1+5 x^2+x^4} \, dx &=\frac {1}{6} \left (-3+\sqrt {21}\right ) \int \frac {1}{\frac {5}{2}-\frac {\sqrt {21}}{2}+x^2} \, dx-\frac {1}{6} \left (3+\sqrt {21}\right ) \int \frac {1}{\frac {5}{2}+\frac {\sqrt {21}}{2}+x^2} \, dx\\ &=-\frac {\tan ^{-1}\left (\sqrt {\frac {2}{5+\sqrt {21}}} x\right )}{\sqrt {3}}+\frac {\tan ^{-1}\left (\sqrt {\frac {1}{2} \left (5+\sqrt {21}\right )} x\right )}{\sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 87, normalized size = 1.74 \begin {gather*} \frac {\left (7-\sqrt {21}\right ) \tan ^{-1}\left (\sqrt {\frac {2}{5-\sqrt {21}}} x\right )}{\sqrt {42 \left (5-\sqrt {21}\right )}}+\frac {\left (-7-\sqrt {21}\right ) \tan ^{-1}\left (\sqrt {\frac {2}{5+\sqrt {21}}} x\right )}{\sqrt {42 \left (5+\sqrt {21}\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1-x^2}{1+5 x^2+x^4} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.80, size = 31, normalized size = 0.62 \begin {gather*} \frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (x^{3} + 4 \, x\right )}\right ) - \frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 26, normalized size = 0.52 \begin {gather*} \frac {1}{6} \, \sqrt {3} {\left (\pi \mathrm {sgn}\relax (x) - 2 \, \arctan \left (\frac {\sqrt {3} {\left (x^{2} + 1\right )}}{3 \, x}\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 136, normalized size = 2.72 \begin {gather*} \frac {2 \sqrt {21}\, \arctan \left (\frac {4 x}{2 \sqrt {7}-2 \sqrt {3}}\right )}{3 \left (2 \sqrt {7}-2 \sqrt {3}\right )}-\frac {2 \arctan \left (\frac {4 x}{2 \sqrt {7}-2 \sqrt {3}}\right )}{2 \sqrt {7}-2 \sqrt {3}}-\frac {2 \sqrt {21}\, \arctan \left (\frac {4 x}{2 \sqrt {7}+2 \sqrt {3}}\right )}{3 \left (2 \sqrt {7}+2 \sqrt {3}\right )}-\frac {2 \arctan \left (\frac {4 x}{2 \sqrt {7}+2 \sqrt {3}}\right )}{2 \sqrt {7}+2 \sqrt {3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} -\int \frac {x^{2} - 1}{x^{4} + 5 \, x^{2} + 1}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 31, normalized size = 0.62 \begin {gather*} \frac {\sqrt {3}\,\left (\mathrm {atan}\left (\frac {\sqrt {3}\,x^3}{3}+\frac {4\,\sqrt {3}\,x}{3}\right )-\mathrm {atan}\left (\frac {\sqrt {3}\,x}{3}\right )\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.13, size = 42, normalized size = 0.84 \begin {gather*} - \frac {\sqrt {3} \left (2 \operatorname {atan}{\left (\frac {\sqrt {3} x}{3} \right )} - 2 \operatorname {atan}{\left (\frac {\sqrt {3} x^{3}}{3} + \frac {4 \sqrt {3} x}{3} \right )}\right )}{6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________